home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / resolvconf < prev    next >
Encoding:
Text File  |  2010-11-16  |  544 b   |  31 lines

  1. # bash completion for resolvconf
  2.  
  3. have resolvconf &&
  4. _resolvconf()
  5. {
  6.     local cur command
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur prev
  10.  
  11.     case $prev in
  12.         -a|-d)
  13.             _available_interfaces
  14.             return 0
  15.             ;;
  16.     esac
  17.  
  18.     if [[ "$cur" == -* ]]; then
  19.         COMPREPLY=( $( compgen -W '-a -d -u' -- "$cur" ) )
  20.     fi
  21. } &&
  22. complete -F _resolvconf resolvconf
  23.  
  24. # Local variables:
  25. # mode: shell-script
  26. # sh-basic-offset: 4
  27. # sh-indent-comment: t
  28. # indent-tabs-mode: nil
  29. # End:
  30. # ex: ts=4 sw=4 et filetype=sh
  31.